<?php $ArCustomers = Dracosys::getSessionValue(SESSION_INTERFACE, 'CustomerList'); ?>
<section id="ReleasePayment">
    <h2>Gerar Boleto</h2>
    <?php if( !empty($ArCustomers) ): ?>
        <table id="ReleasePayment_customer" class="list">
            <thead>
                <tr>
                    <th>Nome</th>
                    <th>Email</th>
                    <th>Status</th>
                    <th>Tipo Pagamento</th>
                    <th>Plano</th>
                    <th>Gerar Boleto</th>
                </tr>
            </thead>
            <tbody>
                <?php foreach ($ArCustomers as $Customer): ?>
                    <tr>
                        <td><?= $Customer->getCustomerName() ?></td>
                        <td><?= $Customer->getArGeneralData('StEmail') ?></td>
                        <td><?= $Customer->getArGeneralData('EnStatus') ?></td>
                        <td><?= $Customer->getFinanceiro()->getEnTipoPagamento(); ?></td>
                        <td><?= $Customer->getFinanceiro()->getPlano()->getStNome() ?></td>
                        <td>
                            <a href="<?=DRA_URL?>boleto/listar-pendencias/id/<?=$Customer->getFinanceiro()->getIDFinanceiro()?>">
                                <img src="<?= DRA_VIEW_URL ?>/images/boleto_1.png" alt="Gerar Boleto" />
                            </a>
                        </td>
                    </tr>
                <?php endforeach; ?>
            </tbody>
        </table>
    <?php else: ?>
        <div class="no-data">Todos os clientes estão em dia.</div>
    <?php endif; ?>
</section>